package com.testplatfrom.project.enumproject.variable;

public enum VarableApiEnums {
    CONSTANT("常量"),
    TABULATION("列表"),
    RANDOMNUMBER("随机数")
    ;
    private String message;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    VarableApiEnums(String message) {
        this.message = message;
    }


    public static VarableApiEnums getByKey(String message){
        for (VarableApiEnums varableUiEnums:values()){
            if (varableUiEnums.getMessage().equals(message)){
                return varableUiEnums;
            }
        }
        return null;
    }
}
